﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DomainService.Service.Sys
{
    /// <summary>
    /// 数据规则配置模型
    /// </summary>
    public class SysDataRuleConfig
    {
        /// <summary>
        /// 配置id
        /// </summary>
        public int ConfigId { get; set; }
        /// <summary>
        /// 配置类型
        /// </summary>
        public int ConfigType { get; set; }
        /// <summary>
        /// 菜单key
        /// </summary>
        public string MenuId { get; set; } = string.Empty;

        /// <summary>
        /// 权限字段
        /// </summary>
        public string PermissionsField { get; set; }= string.Empty;
        /// <summary>
        /// 权限字段名称
        /// </summary>
        public string PermissionsFieldName { get; set; } = string.Empty;
        /// <summary>
        /// 等式条件
        /// </summary>
        public int ConditionalEquationValue { get; set; }
        /// <summary>
        /// 显示控件
        /// </summary>
        public int ShowControl { get; set; }
        /// <summary>
        /// 显示控件的数据源
        /// </summary>
        public int ShowControlDataSource { get; set; }
        /// <summary>
        /// 是否开启
        /// </summary>
        public bool IsOpen { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreateUser { get; set; }
    }
}
